function BindLinks() {
		$('.UI').unbind('click').click(function() { 
			var NextView = $(this).attr('href');
			var NextArray = NextView.split('?');
			var NextPage = NextArray[0];
			var NextArgs = NextArray[1];
			var Prepend = $(this).hasClass('Prepend');
			var Append = $(this).hasClass('Append');
			$.ajax({type: 'POST',
				url:NextPage,
				data:NextArgs,
				timeout:(8000),
				error: function(reqObj,strError) {
					alert('This action is currently unavailable. Please try again in a few minutes');
				},
				success: function(c){
					if(Prepend == true) { 
						$('#display').prepend(c);
					} else if (Append == true) { 
						$('#display').append(c);
					} else { 
						$('#display').html(c);
					};
					BindLinks();
				}
			});
			return false;
		});
};


$(function() { 
	BindLinks();
});